﻿package hunterCommonlib.ui.ico {
	import flash.display.Loader;
	import flash.net.URLRequest;
	import hunterCommonlib.ui.DragPanel;
	
	/**
	* ...
	* @author Default
	*/
	public class Ico extends DragPanel {
		protected var _loader:Loader
		public function Ico() {
			super();
			_loader = new Loader();
			addChild(_loader);
		}
		public function setFile(filePath:String):void {
			_loader.unload();
			_loader.load(new URLRequest(filePath));
		}
		public function setFilePos(x:uint, y:uint) {
			_loader.x = x;
			_loader.y = y;
		}
		public function get childX():uint {
			return _loader.x;
		}
		public function get childY():uint {
			return _loader.y;
		}
	}
	
}